<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>户外活动</title>
<meta name="keywords" content="户外活动" />
<meta name="description" content="户外活动是一家公司" />
<link href="/cms/em/skin/default/css/global.css" rel="stylesheet" type="text/css" />
<link href="/cms/em/skin/default/css/index.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="/cms/em/skin/default/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="/cms/em/skin/default/js/global.js"></script>
</head>
<body class="homepage">
<div id="header">
 <div id="menus">
<ul>
      <li><a href="/cms/em/">首页</a></li>
      <li><a href="/cms/em/act/">最新活动</a></li>
      <li><a href="/cms/em/tribe/">野人部落</a></li>
      <li><a href="/cms/em/e/member/sp/">我的空间</a></li>
      <li><a href="#">线路攻略</a></li>
      <li><a href="#">资讯知识</a></li>
      <li><a href="#">户外装备</a></li>
</ul>

 </div> 
<div id="city">
<form action="/cms/em/e/search/" method="post" class="search-frm" method="get">
<input type="hidden" name="searchget" value="2">
<input type="hidden" name="tempid" value="1">
<input type="hidden" name="andor" value="and">
<input type="hidden" name="hh" value="and">
<input type="hidden" name="show" value="title,start_city">
<input type="hidden" name="keyboard" class="search-keyboard" value="">

<a href="#" val="北京" class="first" style="display:none;">北京</a><a href="#" val="北京" class="cityActive" >北京</a><a href="#" val='深圳'>深圳</a><a href="#" val='广州'>广州</a><a href="#"val="">全国</a><a href="#" class="more-city"><span onclick="showSelectCity();">更多城市</span></a><select name="tbname"><option value="actives">户外活动</option></select><input type="text" class="text search-title" /><input type="submit" class="btn" value="搜索" onclick="indexSearchSubmit();" /></div>
</form>
</div>
<div id="main">
 <div id="topmain">
   <div class="l">
     <div class="title"><h2>最新活动</h2><a href="/cms/em/act/">一周内热门活动</a><a href="#"></a><a href="#"></a></div>
<? @sys_GetEcmsInfo('select * from phome_ecms_actives Where checked=1 and firsttitle =1 order by truetime desc',6,8,0,24,15,0);?>

       <div id="imagelist">
       <div id="bannerlist">
<? @sys_GetEcmsInfo('select * from phome_ecms_actives Where checked=1 and firsttitle =1 order by truetime desc',6,8,0,24,17,0);?>
       </div>
       <div id="bannermenus">
         <ul>
            <li class="select" title="0">1</li>
            <li title="1">2</li>
            <li title="2">3</li>
            <li title="3">4</li>
            <li title="4">5</li>
         </ul>
       </div>
     </div>
   </div>
   <div class="r">
  <script src="/cms/em/e/member/login/loginjs.php"></script>
   </div>
   <div class="clear"></div>
 </div>
 <div class="split"></div>
 <div id="banner"><div class="limg"><a href="http://shop59040793.taobao.com/" target='_blank'><img src="/cms/em/skin/default/pic/banner01.jpg" alt="" title="" /></a></div><div class="rimg"><a href="http://shop59040793.taobao.com/" target='_blank'><img src="/cms/em/skin/default/pic/banner02.jpg" alt="" title="" /></a></div><div class="clear"></div></div>
 <div class="maincontent">
   <div class="border1">
     <div class="border2">
       <div class="l">
         <div class="title"><h2>野人部落</h2><a href="#">最近热门</a><a href="#">最多讨论</a><a href="#">知名话题家</a><a href="#" class="more">更多话题</a></div>
         <div class="list">
           <ul>
<?php 
//$listw=DbTouchAll('phome_jat_tribe_subject',array('1'=>1),'*','order by time desc limit 8');
$sql='SELECT t.title as tribe_title,s.id,s.title,s.uid as suid,c.uid,c.content FROM phome_jat_tribe_subject s LEFT JOIN phome_jat_comment c
ON(s.id=c.app_id AND c.type_id='.TRIBE_COMMNT_ID.') LEFT JOIN phome_ecms_tribe t ON(t.id=s.tribe_id)  WHERE !isnull(c.id) order by s.time desc';
//var_dump($empire);
$rsd=$empire->query($sql);
while($rs=$empire->fetch($rsd)){
print_r($rs);
?>             <li class="top"><b class="s1">话题</b><b class="s2">作者</b><b class="s3">版面</b><b class="s4">回复/查看</b><b class="s5">最后发表</b></li>
<?php }?>
             <li class="li"><span class="s1">话题</span><span class="s2"><a href="#"><img src="image/img02.jpg" alt="" title="" /></a>作者</span><span class="s3">版面</span><span class="s4">回复/查看</span><span class="s5">最后发表</span></li>
             <li><span class="s1">话题</span><span class="s2"><a href="#"><img src="image/img02.jpg" alt="" title="" /></a>作者</span><span class="s3">版面</span><span class="s4">回复/查看</span><span class="s5">最后发表</span></li>
             <li class="li"><span class="s1">话题</span><span class="s2"><a href="#"><img src="image/img02.jpg" alt="" title="" /></a>作者</span><span class="s3">版面</span><span class="s4">回复/查看</span><span class="s5">最后发表</span></li>
             <li><span class="s1">话题</span><span class="s2"><a href="#"><img src="image/img02.jpg" alt="" title="" /></a>作者</span><span class="s3">版面</span><span class="s4">回复/查看</span><span class="s5">最后发表</span></li>
             <li class="li"><span class="s1">话题</span><span class="s2"><a href="#"><img src="image/img02.jpg" alt="" title="" /></a>作者</span><span class="s3">版面</span><span class="s4">回复/查看</span><span class="s5">最后发表</span></li>
             <li><span class="s1">话题</span><span class="s2"><a href="#"><img src="image/img02.jpg" alt="" title="" /></a>作者</span><span class="s3">版面</span><span class="s4">回复/查看</span><span class="s5">最后发表</span></li>
             <li class="li"><span class="s1">话题</span><span class="s2"><a href="#"><img src="image/img02.jpg" alt="" title="" /></a>作者</span><span class="s3">版面</span><span class="s4">回复/查看</span><span class="s5">最后发表</span></li>
             <li><span class="s1">话题</span><span class="s2"><a href="#"><img src="image/img02.jpg" alt="" title="" /></a>作者</span><span class="s3">版面</span><span class="s4">回复/查看</span><span class="s5">最后发表</span></li>
          </ul>
         </div>
         <div id="deployment">
           <div class="title"><h3>最新注册</h3><a href="#" class="more">+更多</a></div>
           <div id="deploymentlist">
            <ul>

<?php 
 $newUsert=sys_ListMemberInfo(5,0,0,0,"u.userid,userpic,username, truename,nickname");
while($newUser=$empire->fetch($newUsert))
{
?>
                 <li><a href="./e/member/sp/?uid=<?=$newUser[userid]?>"><img src="<?=getUserHead($newUser[userpic],120,120)?>" alt="" title="" /></a><p><a href="./e/member/sp/?uid=<?=$newUser[userid]?>"><?=$newUser[nickname]?></a></p></li>
             <?php }?>
</ul>
           </div>
         </div>
       </div>
       <div class="r">
 <? @sys_GetEcmsInfo('select * from phome_ecms_actives  Where checked=1 AND isgood =1 order by onclick desc limit 1 ',1,26,0,24,16,0);?>
               </div>
       <div class="clear"></div>
     </div>
   </div>
 </div>
<dl style="z-index: 480; display: block;position:absolute;display:none;" class="oDiv" id="morecity">
	<dt><a  href="#" class="m_close select-city-close">&nbsp;</a>请选择城市 </dt>
	<dd class="blue">
	<div class="red">
		<span style="float: left;">	户外运动热门城市：
			<a href="#">北京</a>
			<a href="#">南昌</a>
			<a href="#">重庆</a>
			<a href="#">深圳</a><br />
			<a href="#">青岛</a>
			<a href="#">济南</a>
		</span>
	</div>
	<div class="clear"></div>	
	</dd>

</dl>


 <div class="split"  style='display:none;'></div>
 <div class="maincontent" style='display:none;'>
   <div class="border1">
     <div class="border2">
       <div class="l">
         <div class="title"><h2>线路攻略</h2><a href="#">最多浏览</a><a href="#">精华游记</a><a href="#">知名作家</a><a href="#" class="more">更多游记</a></div>
         <div id="linecontent">
           <div class="line">
              <div class="image"><a href="#"><img src="image/img01.jpg" alt="" title="" /></a></div>
              <dl>
                 <dt><a href="#">我在新西兰地震中...</a></dt>
                 <dd>2008年我还在北京，11月02日我和朋友李宏轶一起参加绿野的一次户外活动。[<a href="#">更多</a>]</dd>
              </dl>
           </div>
           <div class="line">
              <div class="image"><a href="#"><img src="image/img01.jpg" alt="" title="" /></a></div>
              <dl>
                 <dt><a href="#">我在新西兰地震中...</a></dt>
                 <dd>2008年我还在北京，11月02日我和朋友李宏轶一起参加绿野的一次户外活动。[<a href="#">更多</a>]</dd>
              </dl>
           </div>
           <div class="line">
              <div class="image"><a href="#"><img src="image/img01.jpg" alt="" title="" /></a></div>
              <dl>
                 <dt><a href="#">我在新西兰地震中...</a></dt>
                 <dd>2008年我还在北京，11月02日我和朋友李宏轶一起参加绿野的一次户外活动。[<a href="#">更多</a>]</dd>
              </dl>
           </div>
           <div class="line">
              <div class="image"><a href="#"><img src="image/img01.jpg" alt="" title="" /></a></div>
              <dl>
                 <dt><a href="#">我在新西兰地震中...</a></dt>
                 <dd>2008年我还在北京，11月02日我和朋友李宏轶一起参加绿野的一次户外活动。[<a href="#">更多</a>]</dd>
              </dl>
           </div>
           <div class="clear"></div>
         </div>
       </div>
       <div class="r">
         <div class="title"><h3>部落之星</h3><a href="#" class="more">+更多</a></div>
         <dl>
            <dt><a href="#"><img src="image/img02.jpg" alt="" title="" /></a></dt>
            <dd><a href="#">罂粟花</a></dd>
         </dl>
         <dl>
            <dt><a href="#"><img src="image/img02.jpg" alt="" title="" /></a></dt>
            <dd><a href="#">罂粟花</a></dd>
         </dl>
         <dl>
            <dt><a href="#"><img src="image/img02.jpg" alt="" title="" /></a></dt>
            <dd><a href="#">罂粟花</a></dd>
         </dl>
         <dl>
            <dt><a href="#"><img src="image/img02.jpg" alt="" title="" /></a></dt>
            <dd><a href="#">罂粟花</a></dd>
         </dl>
         <dl>
            <dt><a href="#"><img src="image/img02.jpg" alt="" title="" /></a></dt>
            <dd><a href="#">罂粟花</a></dd>
         </dl>
         <dl>
            <dt><a href="#"><img src="image/img02.jpg" alt="" title="" /></a></dt>
            <dd><a href="#">罂粟花</a></dd>
         </dl>
         <div class="clear"></div>
       </div>
       <div class="clear"></div>
     </div>
   </div>
 </div>
 <div class="split"></div>
 <div id="footer">
  <div class="copyright">
    <p><span>&copy;</span> 2011 www.yerenbang.org,all rights reserved</p>
    <p>京ICP备09031272号</p>
  </div>
  <a href="#">关于我们</a>|<a href="#">联系方式</a>|<a href="#">意见反馈</a>|<a href="#">友情链接</a>|<a href="#">网站地图</a>|<a href="#">户外网站联盟</a>
 </div>
 <div id="bottommain"></div>
</div>
</body>
</html>

